home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update26.zoo / libg++ / src / diffs next >
Encoding:
Text File  |  1992-11-07  |  4.1 KB  |  160 lines

  1. *** 1.7    1992/08/14 17:36:48
  2. --- Changelo    1992/11/08 00:37:14
  3. ***************
  4. *** 263,265 ****
  5. --- 263,278 ----
  6.       new target for above.
  7.   
  8.   ---------------------------- Patchlevel 14 -----------------------------------
  9. + dummy.c:: ++jrb
  10. +     break up file into two seperate files, dummy 1 and 2 seperating
  11. +     ctor from dtor for the case in which a program only has
  12. +     a one a global constructor or destructor.
  13. + mincl:: ++jrb
  14. +     adjust atrgets for dummy[12].o
  15. + gnuaux.c:: ++jrb
  16. +     dont pass a zero size request to malloc.
  17. + ---------------------------- Patchlevel 15 -----------------------------------
  18. *** 1.9    1992/08/14 17:36:48
  19. --- PatchLev.h    1992/11/08 00:37:14
  20. ***************
  21. *** 1,5 ****
  22.   
  23. ! #define    PatchLevel "14"
  24.   
  25.   /*
  26.    *    the Patch Level above is to identify the version
  27. --- 1,5 ----
  28.   
  29. ! #define    PatchLevel "15"
  30.   
  31.   /*
  32.    *    the Patch Level above is to identify the version
  33. *** 1.3    1992/08/14 17:36:48
  34. --- gnuaux.c    1992/11/08 00:37:20
  35. ***************
  36. *** 25,31 ****
  37.   {
  38.     char *p;
  39.   
  40. !   p = (char *)malloc (sz);
  41.     if (p == 0)
  42.       (*__new_handler) ();
  43.     return p;
  44. --- 25,31 ----
  45.   {
  46.     char *p;
  47.   
  48. !   p = (char *)malloc (sz ? sz : (size_t)1);
  49.     if (p == 0)
  50.       (*__new_handler) ();
  51.     return p;
  52. *** 1.7    1992/08/14 17:36:48
  53. --- mincl    1992/11/08 00:37:24
  54. ***************
  55. *** 21,31 ****
  56.   igetsb.cc iodtoa.cc outfloat.cc
  57.   
  58.   #
  59. ! # NOTE:: dummy.o MUST be the last object on this list. otherwise you'll
  60.   #        end up with multiple definitions of global ctor/dtors
  61.   #
  62.   OBJ = gnulib3.o  _bin_del.o _bin_new.o _bin_nw.o _bin_nh.o ident.o \
  63. ! $(LIBSRC:.cc=.o) $(IOSRC:.cc=.o) dummy.o
  64.   
  65.   all: $(ALL)
  66.   all020: $(ALL020)
  67. --- 21,31 ----
  68.   igetsb.cc iodtoa.cc outfloat.cc
  69.   
  70.   #
  71. ! # NOTE:: dummy[12].o MUST be the last objects on this list. otherwise you'll
  72.   #        end up with multiple definitions of global ctor/dtors
  73.   #
  74.   OBJ = gnulib3.o  _bin_del.o _bin_new.o _bin_nw.o _bin_nh.o ident.o \
  75. ! $(LIBSRC:.cc=.o) $(IOSRC:.cc=.o) dummy1.o dummy2.o
  76.   
  77.   all: $(ALL)
  78.   all020: $(ALL020)
  79. *** 1.1    1992/03/22 07:42:32
  80. --- xcomplex.cc    1992/11/08 00:37:31
  81. ***************
  82. *** 47,53 ****
  83.   /* from romine@xagsun.epm.ornl.gov */
  84.   Complex /* const */ operator / (const Complex& x, const Complex& y)
  85.   {
  86. !   double den = abs(y.real()) + abs(y.imag());
  87.     if (den == 0.0) x.error ("Attempted division by zero.");
  88.     double xrden = x.real() / den;
  89.     double xiden = x.imag() / den;
  90. --- 47,53 ----
  91.   /* from romine@xagsun.epm.ornl.gov */
  92.   Complex /* const */ operator / (const Complex& x, const Complex& y)
  93.   {
  94. !   double den = fabs(y.real()) + fabs(y.imag());
  95.     if (den == 0.0) x.error ("Attempted division by zero.");
  96.     double xrden = x.real() / den;
  97.     double xiden = x.imag() / den;
  98. ***************
  99. *** 60,66 ****
  100.   
  101.   Complex& Complex::operator /= (const Complex& y)
  102.   {
  103. !   double den = abs(y.real()) + abs(y.imag());
  104.     if (den == 0.0) error ("Attempted division by zero.");
  105.     double xrden = re / den;
  106.     double xiden = im / den;
  107. --- 60,66 ----
  108.   
  109.   Complex& Complex::operator /= (const Complex& y)
  110.   {
  111. !   double den = fabs(y.real()) + fabs(y.imag());
  112.     if (den == 0.0) error ("Attempted division by zero.");
  113.     double xrden = re / den;
  114.     double xiden = im / den;
  115. ***************
  116. *** 166,172 ****
  117.       return Complex(0.0, 0.0);
  118.     else
  119.     {
  120. !     double s = sqrt((abs(x.real()) + hypot(x.real(), x.imag())) * 0.5);
  121.       double d = (x.imag() / s) * 0.5;
  122.       if (x.real() > 0.0)
  123.         return Complex(s, d);
  124. --- 166,172 ----
  125.       return Complex(0.0, 0.0);
  126.     else
  127.     {
  128. !     double s = sqrt((fabs(x.real()) + hypot(x.real(), x.imag())) * 0.5);
  129.       double d = (x.imag() / s) * 0.5;
  130.       if (x.real() > 0.0)
  131.         return Complex(s, d);
  132. *** 1.3    1992/07/17 18:24:43
  133. --- xstring.cc    1992/11/08 00:37:37
  134. ***************
  135. *** 167,172 ****
  136. --- 167,178 ----
  137.     return rep;
  138.   }
  139.   
  140. + // allocate, char
  141. + StrRep* Schar(char c)
  142. + {
  143. +   return Salloc(0, &c, 1, 1);
  144. + }
  145.   // reallocate: Given the initial allocation scheme, it will
  146.   // generally be faster in the long run to get new space & copy
  147.   // than to call realloc
  148. ***************
  149. *** 1324,1327 ****
  150.     if (!v) S.error("SubString invariant failure");
  151.     return v;
  152.   }
  153. --- 1330,1332 ----
  154.